home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Clickx 115
/
Clickx 115.iso
/
software
/
tools
/
windows
/
tails-i386-0.16.iso
/
live
/
filesystem.squashfs
/
usr
/
share
/
laptop-mode-tools
/
module-helpers
/
pm-suspend
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2012-05-20
|
381 b
|
29 lines
#!/bin/sh
MEM=0;
DISK=0;
target=`basename $0 | cut -d '-' -f2`
case "$target" in
suspend) MEM=1 ;;
hibernate) DISK=1 ;;
*) echo "Unrecognized command"
exit 1 ;;
esac
# Sync buffers first.
sync;
# Freezer on preference
if [ x$MEM = x1 ]; then
echo "mem" > /sys/power/state
elif [ x$DISK = x1 ]; then
echo "disk" > /sys/power/state
else
## Nothing to do.
echo ;
fi